package ysq.xyg.model.info;

/**
 * @author yu sheng qiang
 * @create 2017-03-22 16:49
 **/
public class ReturnEntity {
    private String code;//返回状态，success表示成功，error表示失败
    private Object result;//成功时，返回的参数
    private String errorMsg;//失败原因
    private String url;//跳转url

    public ReturnEntity(String code, Object result) {
        this.code = code;
        this.result = result;
    }

    public ReturnEntity(String code, String errorMsg) {
        this.code = code;
        this.errorMsg = errorMsg;
    }

    public ReturnEntity(String code, Object result, String url) {
        this.code = code;
        this.result = result;
        this.url = url;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
